package com.photobucket.webapi.oauth
{

        import flexunit.framework.TestCase;
        import flexunit.framework.TestSuite;
		import com.photobucket.webapi.oauth.urlEncode;

		public class URLEncodeTest extends TestCase {

			public function URLEncodeTest(methodName:String = null) {
				super(methodName);
			}

			public function testSafeChars():void {
				var strIn:String = "abcdefhijklmnopqrstuvwxyzABCDEFHIJKLMNOPQRSTUVWXYZ_.~-";
				var strOut:String = urlEncode(strIn);
				assertEquals(strIn, strOut);
			}

			public function testCommonEncodeChars():void {
				var strIn:String = "/ ";
				var strOut:String = urlEncode(strIn);
				assertTrue((strIn != strOut));
				assertEquals("%2F%20", strOut);
			}


		}
}
